package com.yanglun.mvp.db;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by lyang on 2016/9/13.
 */
@DatabaseTable(tableName = "xtb_user")
public class UserDBModel
{
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField(columnName = "firstname")
    private String firstname;
    @DatabaseField(columnName = "lastname")
    private String lastname;

    public UserDBModel()
    {
    }

    public UserDBModel(String firstname, String lastname)
    {
        this.firstname = firstname;
        this.lastname = lastname;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getFirstname()
    {
        return firstname;
    }

    public void setFirstname(String firstname)
    {
        this.firstname = firstname;
    }

    public String getLastname()
    {
        return lastname;
    }

    public void setLastname(String lastname)
    {
        this.lastname = lastname;
    }
}